<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <div style="margin:10px 10px 10px 10px">
    	<p>说明：本列表展示支持的所有币种</p>
    </div>
<table id="currencys" class="easyui-datagrid"  title="币种列表" 
       data-options="singleSelect:false,collapsible:true,pagination:true,url:'/common/getLocalCurrencys',method:'get',pageSize:20,toolbar:'#currencys_tb'">
    <thead>
        <tr>
            <th data-options="field:'name',width:100,sortable:true">币种名称</th>
        </tr>
    </thead>
</table>
<div id="currencys_tb" style="padding:5px;height:auto">
	
		<div>
			币种名称: <input id="name" class="easyui-textbox" style="width:80px">
			<a href="#" id="currency_search" class="easyui-linkbutton" iconCls="icon-search">模糊查询</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">清除条件</a>
		</div>
</div>
	
	<script>
	$("#currency_search").click(function(){
		var name = $("#currencys_tb #name").val();
		$('#currencys').datagrid('load',{
			name: name
		});
	})
	function clearForm(){
			$('#currencys_tb').form('clear');
	}
	</script>